<!DOCTYPE HTML>
<html>
	<head>
		<meta charset="utf-8">
		<meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0"/>
		<meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
		<title></title>
		<link rel="stylesheet" type="text/css" href="../../../css/aui/aui.css" />
		<style type="text/css">
		</style>
	</head>
	<body>
		<div id="main" style="width: 100%;height:100%;"></div>
	</body>
	<script type="text/javascript" src="../../../script/echarts.min.js"></script>
	<script type="text/javascript">
		option = {
			legend : {
				data : ['高度(km)与气温(°C)变化关系']
			},
			tooltip : {
				trigger : 'axis',
				formatter : "Temperature : <br/>{b}km : {c}°C"
			},
			grid : {
				left : '3%',
				right : '4%',
				bottom : '3%',
				containLabel : true
			},
			xAxis : [{
				type : 'value',
				axisLabel : {
					formatter : '{value} °C'
				}
			}],
			yAxis : [{
				type : 'category',
				axisLine : {
					onZero : false
				},
				axisLabel : {
					formatter : '{value} km'
				},
				boundaryGap : false,
				data : ['0', '10', '20', '30', '40', '50', '60', '70', '80']
			}],
			series : [{
				name : '高度(km)与气温(°C)变化关系',
				type : 'line',
				smooth : true,
				itemStyle : {
					normal : {
						lineStyle : {
							shadowColor : 'rgba(0,0,0,0.4)'
						}
					}
				},
				data : [15, -50, -56.5, -46.5, -22.1, -2.5, -27.7, -55.7, -76.5]
			}]
		};
		// 基于准备好的dom，初始化echarts实例
		var myChart = echarts.init(document.getElementById('main'));
		// 使用刚指定的配置项和数据显示图表。
		myChart.setOption(option);
	</script>
</html>